
// 自动生成模板StudentProfile
package example
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// 学生档案 结构体  StudentProfile
type StudentProfile struct {
    global.GVA_MODEL
    FullName  *string `json:"fullName" form:"fullName" gorm:"column:full_name;comment:学生全名;" binding:"required"`  //姓名
    Gender  *string `json:"gender" form:"gender" gorm:"column:gender;comment:学生性别;" binding:"required"`  //性别
    BirthDate  *time.Time `json:"birthDate" form:"birthDate" gorm:"column:birth_date;comment:学生出生日期;" binding:"required"`  //出生日期
    StudentID  *string `json:"studentID" form:"studentID" gorm:"column:student_id;comment:学生学号;" binding:"required"`  //学号
    Class  *string `json:"class" form:"class" gorm:"column:class;comment:学生所在班级;" binding:"required"`  //班级
    Major  *string `json:"major" form:"major" gorm:"column:major;comment:学生专业;" binding:"required"`  //专业
    Email  *string `json:"email" form:"email" gorm:"column:email;comment:学生邮箱;"`  //邮箱
    Phone  *string `json:"phone" form:"phone" gorm:"column:phone;comment:学生电话;"`  //电话
    Address  *string `json:"address" form:"address" gorm:"column:address;comment:学生住址;"`  //住址
    Portrait  string `json:"portrait" form:"portrait" gorm:"column:portrait;comment:学生头像图片;"`  //头像
}


// TableName 学生档案 StudentProfile自定义表名 student_profiles
func (StudentProfile) TableName() string {
    return "student_profiles"
}





